home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
pageflipper plus FX d1.adf
/
Text
/
colo
< prev
next >
Wrap
Text File
|
1987-05-15
|
1KB
|
36 lines
COLO (
NUMB ( <color number> )
ADDR ( <amount to add to red of color number NUMB> ) and/or
ADDG ( <amount to add to green of color number NUMB> ) and/or
ADDB ( <amount to add to blue of color number NUMB> ) and/or
SUBR ( <amount to subtract from red of color NUMB> ) and/or
SUBG ( <amount to subtract from green of color NUMB> ) and/or
SUBB ( <amount to subtract from blue of color NUMB> )
)
COLO stands for COLOr modification.
This is a special way of modifying colors in the current
palette. The COLO statement, which can be placed anywhere
within the "body" of the animation script (ie, anywhere
after the initialization (INIT) section) consists of
substatements which allow one to modify separate RGB
components of one color by simpla addition or subtraction
from a red, green, or blue value. Within a single color
statement, by including several NUMBer statements, you can
incrementally or decrementally modify several colors.
The power of this statement emerges when used in loops.
For example, the red component can be increased by one
each time through a loop.
Refer to the COLO statement in the Script Syntax reference
chapter, and to the Tutorials in the Manual, for more
information.
NOTE: If a color modification in the above sense would make
color component intensities go out of range (lower than
zero or higher than 15, then PFX will only increase/
decrease the value to its limit.